#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QVector>
#include <QPixmap>
#include <QTimer>
#include <QPointF>
#include <QPainter>
#include <QPainter>
#include <QPushButton>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
	Q_OBJECT

public:
	explicit Widget(QWidget *parent = 0);
	~Widget();

    int count=0;
    QVector<int> su;


protected:
	void paintEvent(QPaintEvent *);
private:
    QTimer *t1;
    QTimer *timer;
    QTimer *timer2;
    QTimer *timer3;

    QPoint pointc;
    QPoint pointc2;
    QPoint pointc3;

    QVector<QPoint> points;


    QPoint p1;
    QPoint p2;
    int len_time=0;
    int num;
    int e[1000]={0};

    int num2;
    int e2[1000]={0};
    QPoint p3;
    QPoint p4;

    int num3;
    int e3[1000]={0};
    QPoint p5;
    QPoint p6;

private slots:

    void plt_line(int v0);

    void on_m_pb1_clicked();

    void on_m_pb2_clicked();

    void on_m_pb3_clicked();

    void on_m_pb5_clicked();

    void on_m_pb4_clicked();

    void on_m_pb9_clicked();

    void on_m_pb7_clicked();

    void on_m_pb6_clicked();

    void on_m_pb8_clicked();

    void on_m_pb10_clicked();

    void on_pushButton_clicked();

    void timerUpDate();

    void ppt();

    void plt();

    QString getDex(QPushButton* q1,QPushButton* q2);

    void on_m_pb11_clicked();

    void on_m_pb12_clicked();

    void on_m_pb13_clicked();

    void on_m_pb14_clicked();

    void on_m_pb15_clicked();

    void on_m_pb16_clicked();

    void on_m_pb17_clicked();

    void on_m_pb18_clicked();

    void on_m_pb19_clicked();

    void on_m_pb20_clicked();

    void on_m_pb21_clicked();

    void on_m_pb22_clicked();

    void on_m_pb23_clicked();

    void plt2();

    void ppt2();

    void plt3();

    void ppt3();

public:

private:
	Ui::Widget *ui;

    QPixmap Pix;
};

#endif // WIDGET_H
